package com.banyuan.util;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author 陶继发
 * @version 1.8
 */
public class Test {
    public static void main(String[] args) throws SQLException {
        Connection connection = JDBCUtil.getConnection();
        String sql = "select * from translate where jianti=?";
        ResultSet re = JDBCUtil.executeQuery(connection, sql, "亚");
        if (re.next()) {
            String fan = re.getString("fanti");
            System.out.println(fan);
        }
    }
}
